package MyBinaryTree;

public class HuffmanNode {
    // 结点权值
    public int weight;
    // 是否已经加入了哈夫曼树
    public int flag;
    // 父节点与孩子结点
    public HuffmanNode parent, lchild, rchild;

    public HuffmanNode() {
        weight = 0;
        flag = 0;
        parent = lchild = rchild = null;
    }

    public HuffmanNode(int weight) {
        this.weight = weight;
        flag = 0;
        parent = lchild = rchild = null;
    }
}
